﻿using System;

namespace HML
{
    /// <summary>
    /// TabItem关闭后事件参数
    /// </summary>
    public class TabItemCloseButtonClosedEventArgs : EventArgs
    {
        private readonly TabPagePlus tabPage;
        /// <summary>
        /// 关闭按钮所属的TabPage
        /// </summary>
        public TabPagePlus TabPage
        {
            get { return this.tabPage; }
        }

        private readonly TabItemCloseButton closeButton;
        /// <summary>
        /// 关闭按钮
        /// </summary>
        public TabItemCloseButton CloseButton
        {
            get { return this.closeButton; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="tabPage">关闭按钮所属的TabPage</param>
        /// <param name="closeButton">关闭按钮</param>
        public TabItemCloseButtonClosedEventArgs(TabPagePlus tabPage, TabItemCloseButton closeButton)
        {
            this.tabPage = tabPage;
            this.closeButton = closeButton;
        }

    }

}
